from pip._internal.utils import logging

logger = logging.getLogger()

logger.setLevel(logging.DEBUG)

st = logging.StreamHandler()
fh = logging.handles.TimedRotatingfileHandler
